package com.hpjpw.idoapp.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class EnterpriseImportVo {
    private static final long serialVersionUID = 1L;
    /** 企业名称 */
    @Excel(name = "企业名称")
    private String name;

    /** 注册码 */
    @Excel(name = "注册码")
    private String code;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 地区 */
    @Excel(name = "地区名称")
    private String areaName;

    /** 联系地址 */
    @Excel(name = "联系地址")
    private String address;

    /** 邮箱地址 */
    @Excel(name = "邮箱地址")
    private String email;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @NotBlank(message = "企业名称不能为空")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @NotBlank(message = "注册码不能为空")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @NotBlank(message = "联系电话不能为空")
    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    @NotBlank(message = "地区不能为空")
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
    @NotBlank(message = "联系地址不能为空")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    @NotBlank(message = "排序不能为空")
    public Long getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Long orderNum) {
        this.orderNum = orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("企业名称", getName())
                .append("注册码", getCode())
                .append("联系电话", getPhone())
                .append("地区名称", getAreaName())
                .append("联系地址", getAddress())
                .append("邮箱地址", getEmail())
                .append("排序",getOrderNum())
                .toString();
    }
}
